__author__ = 'Brendan'

import unittest
from ChessBoard import *

class TestMoveBishop(unittest.TestCase):
	
	def setUp(self):
		self.cb = ChessBoard()

	def tearDown(self):
		self.cb = None

	# Attempt a valid move
	def testValidMove(self):
		self.assertTrue(self.cb.moveBishop((1,1),(2,2)))

	# Should return false when attempting invalid move - though a valid square
	def testCatchInvalidMove(self):
		self.assertFalse(self.cb.moveBishop((1,1),(1,2)))

	#  Expect to return false when attempting a move outside board
	def testCatchBeyondRange(self):
		self.assertFalse(self.cb.moveBishop((1,1), (1,512)))



if __name__ == "__main__":
	unittest.main()